package resources.service;

import java.util.List;
import java.util.Set;

import resources.domain.Role;
import resources.domain.User;

/**
 * Spring service that handles CRUD requests for Role entities
 * 
 */
public interface RoleService {

	/**
	 * Delete an existing Role entity
	 * 
	 */
	public void deleteRole(Role role);

	/**
	 * Return a count of all Role entity
	 * 
	 */
	public Integer countRoles();

	/**
	 * Save an existing User entity
	 * 
	 */
	public Role saveRoleUsers(Integer id, User related_users);

	/**
	 * Return all Role entity
	 * 
	 */
	public List<Role> findAllRoles(Integer startResult, Integer maxRows);

	/**
	 * Save an existing Role entity
	 * 
	 */
	public void saveRole(Role role_1);

	/**
	 * Load an existing Role entity
	 * 
	 */
	public Set<Role> loadRoles();

	/**
	 */
	public Role findRoleByPrimaryKey(Integer id_1);

	/**
	 * Delete an existing User entity
	 * 
	 */
	public Role deleteRoleUsers(Integer role_id, Integer related_users_id);
}